package cn.gogpay.dcb.api.feign;

import cn.gogpay.dcb.api.feign.impl.PublicTrafficClientImpl;
import cn.gogpay.dcb.common.dto.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author jiaoming@gogpay.cn
 * @date 2019/11/22 21:34
 * ,url = "192.168.2.133:8323"
 */
@Primary
@FeignClient(name = "public-transportation", fallback = PublicTrafficClientImpl.class)
public interface PublicTrafficClient {


    /**
     * 根据经纬度获取车站信息
     *
     * @param lng
     * @param lat
     * @return
     */
    @RequestMapping("/publicTransportation/api/out/getStationInfo")
    ResultDTO getStationInfo(@RequestParam("lng") BigDecimal lng, @RequestParam("lat") BigDecimal lat);

}

